<!--
  @author wangjie
  @since 2019/11/19
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox'}"></th>
        <th lay-data="{field:'sort', unresize:false, align:'center', edit: 'text',width:60}">排序</th>
        <th lay-data="{field:'id',  unresize:false, align:'center',width:70}">ID</th>
        <th lay-data="{field:'putApp', unresize:false,width:200, align:'center'}">投放APP</th>
        <th lay-data="{field:'putTypeStr', unresize:false, align:'center',width:130}">投放类型</th>
        <th lay-data="{field:'noticeCategoryStr', unresize:false, align:'center',width:150}">所属分类</th>
        <th lay-data="{field:'deptNameStr', unresize:false,width:230, align:'center'}">发布部门</th>
        <th lay-data="{field:'status', unresize:false,width:88, align:'center', templet: '#statusTpl'}">发布状态</th>
        <th lay-data="{field:'beginTimeStr', unresize:false,width:160, align:'center'}">生效时间</th>
        <th lay-data="{field:'endTimeStr', unresize:false,width:160, align:'center'}">结束时间</th>
        <th lay-data="{field:'createTimeStr', unresize:false,width:160, align:'center'}">创建时间</th>
        <th lay-data="{field:'creater', unresize:false, align:'center'}">创建人</th>
        <!--规定操作列置于最后-->
        <th lay-data="{field:'详情', align:'center', fixed:'right'}">详情</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.sort}"></td>
        <td th:text="${item.id}"></td>
        <td th:text="${item.putApp}"></td>
        <td th:text="${item.putTypeStr}"></td>
        <td th:text="${item.noticeCategoryStr}"></td>
        <td th:text="${item.deptNameStr}"></td>
        <td th:text="${item.status}"></td>
        <td th:text="${item.beginTimeStr}"></td>
        <td th:text="${item.endTimeStr}"></td>
        <td th:text="${item.createTimeStr}"></td>
        <td th:text="${item.creater}"></td>
        <td>
            <a style="color: #00a0e9" th:onclick="openPage([[${item.id}]],'修改')"
               lay-text="详情">详情</a>
        </td>
    </tr>
    </tbody>
</table>
